<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
	function doSub(){
		document.getElementById("pageForm").submit();
	}
	</script>
	<style type="text/css">
	table{border: 1px blue solid;border-collapse: collapse;};
	td{border: 1px blue solid;border-collapse: collapse;};
	</style>
  </head>
  
  <body>
   <center>
    <s:form action="/htxs/TestAction.action" namespace="htxs" method="post" name="pageForm" id="pageForm">
   
    <table>
    	<tr>
    		<td>用户名：</td>
    		<td><input type="text" ></td>
    	</tr>
    	<tr>
    		<td>密码：</td>
    		<td><input type="text" ></td>
    	</tr>
    </table>
    <input type="button" value="提交" onclick="doSub()"/>
    </s:form>
    
    </center>
  </body>
</html>
